package com.molyfun.parents.im.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by william(liuchao.hit@gmail.com).
 * Date:30/05/2018.
 */
public class ImUser implements Parcelable {

    /**
     * imgurl : http://media.molyfun.com/header/ic_20180227-184709.jpg?sign=15b99ca32505d67403999a2f9c93a45b&t=5b0ecc5d
     * sex : 男
     * userid : ae9d84b0a91d48dab8818082264ae870
     * username : liuchao
     */

    private String imgurl;
    private String sex;
    private String userid;
    private String username;
    private String usertype;

    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUsertype() {
        return usertype;
    }

    public void setUsertype(String usertype) {
        this.usertype = usertype;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.imgurl);
        dest.writeString(this.sex);
        dest.writeString(this.userid);
        dest.writeString(this.username);
        dest.writeString(this.usertype);
    }

    public ImUser() {
    }

    protected ImUser(Parcel in) {
        this.imgurl = in.readString();
        this.sex = in.readString();
        this.userid = in.readString();
        this.username = in.readString();
        this.usertype = in.readString();
    }

    public static final Parcelable.Creator<ImUser> CREATOR = new Parcelable.Creator<ImUser>() {
        @Override
        public ImUser createFromParcel(Parcel source) {
            return new ImUser(source);
        }

        @Override
        public ImUser[] newArray(int size) {
            return new ImUser[size];
        }
    };
}
